<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>iframe体验页面无刷新</title>
    <script>
        function go() {
            var url=document.getElementById("url").value;
            document.getElementById("iframe").src=url;
        }
    </script>
</head>
<body>
<div>
    <div>
        <p>请输入地址</p>
        <div style="border-radius: 5px;border: 100px">请输入地址</div>
        <span style="border-radius: 5px;border: 100px">请输入地址</span>
        <p>
            地址<input type="text" id="url">
            <input type="button" value="提交" onclick="go()">
        </p>
    </div>
    <iframe id="iframe" frameborder="1000" style="height: 380px;width: 100%">你好</iframe>
</div>
</body>
</html>